/**
 * @projectName study_java
 * @package chapter_06
 * @className chapter_06.FineryDecorator
 */
package Decorator;

/**
 * FineryDecorator
 * @description 服饰基类，实现装饰方法
 * @author answer_wx
 * @date 2022/6/26 16:49
 * @version 1.0
 */
public class FineryDecorator implements IOperation {
    private IOperation iOperation;

    // 打扮
    public void decorator(IOperation iOperation) {
        this.iOperation = iOperation;
    }

    @Override
    public void show() {
        if (iOperation != null) {
            iOperation.show();
        }
    }
}